<?php
namespace app\api\validate;

use think\Validate;

/**
 * 行为验证器
 * @package app\menus\validate
 * @author
 */
class QueueRule extends Validate
{
    //定义验证规则
    protected $rule = [
        'type' => 'require',
        'is_working_engineer_first' => 'require',
        'is_working_dot_act' => 'require|number',
        'is_overtime_dot_act' => 'require',
        'is_overtime_auto_queue' => 'require',
        'rule' => 'require',
        'is_overtime_act_queue' => 'require',
        'second_act_type' => 'require',

    ];
    //定义验证提示
    protected $message = [
        'type.require' => '请选择排钟规则',
        'is_working_engineer_first.require' => '请选择优先当班技师',
        'is_working_dot_act.require' => '请选择工作时间点钟动排',
        'is_overtime_dot_act.require' => '请选择加班点钟动排',
        'is_overtime_auto_queue.require' => '请选择加班排钟',
        'rule.require' => '请选择合并班次',
        'is_overtime_act_queue.require' => '请选择加班排钟动排',
        'second_act_type.require' => '请选择副项排钟',

    ];

}
